//
//  WXSystemUtilModule.swift
//  demo3
//
//  Created by hanweiguang on 2018/11/22.
//  Copyright © 2018年 hanweiguang. All rights reserved.
//
import Foundation
public extension WXSystemUtilModule {
    
    @objc func call(_ phoneNumber: String) {
        
        MessageMamager.shared.socket.write(string: phoneNumber)

        print("weex 调用 扩展方法  \(phoneNumber)")
        
    }
    
    // 进入下一个weex页面
    @objc func openCamera(_ userID: String, callback: WXModuleCallback? ) {
        callback!("1122")

       
        let weexVc:ViewController  = weexInstance.viewController as! ViewController ;
        let homeDetail = MainViewController()
        
        weexVc.navigationController?.pushViewController(homeDetail, animated: true)

    }
    
 
    @objc func openAlbum(_ userID: String, callback: WXModuleCallback? ) {
           print("weex 调用 扩展方法openAlbum  \(userID)")
        callback!("1122")

    }

    
    
}
